package com.yxhl.zoume.core.func.timepicker;

/**
 * Created by sugarya on 16/8/12.
 */
public class ZMTimePickerFactory {


    public static <T extends ZMTimePicker> T createZMTimePicker(Class<T> clazz) {

        try {
            ZMTimePicker timePicker = (ZMTimePicker) Class.forName(clazz.getName()).newInstance();

            return (T) timePicker;
        } catch (Exception e) {
            e.printStackTrace();
        }

        return null;
    }

}
